
import Vue from 'vue';
import LoginTipsDialog from '../views/401.vue'


const LoginTipsDialogConstructor = Vue.extend(LoginTipsDialog);

let isShowDialog = false;
class OnlyDialog {
 
    
    show(flag){
        if(flag==true){
            isShowDialog = false
        }
        if(isShowDialog||flag==true){
            return;
        }
        isShowDialog = true;
        const div = document.createElement('div');
        document.body.appendChild(div);
        const alertInstance = new LoginTipsDialogConstructor({}).$mount(div);
    }
 
}

export default   new OnlyDialog()
